package com.team_project.boot.controller;

import com.team_project.boot.entity.Design;
import com.team_project.boot.mapper.DesignMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class DesignController {
    @Autowired(required = false)
    DesignMapper mapper;

    @RequestMapping("/desginRight")
    public List<Design> selectRight(){
        return mapper.selectRight();
    }
    @RequestMapping("/desginLeft")
    public List<Design> selectLeft(){
        return mapper.selectLeft();
    }
}
